/* ============================================================
   AROMA51 랜딩페이지 — 자연·치유 감성
   ※ 수정 가이드
   - 색상/폰트: 아래 :root 변수를 바꾸면 전체에 적용됩니다.
   - 히어로 배경: --hero-bg 의 url(...) 을 바꾸면 됩니다.
============================================================ */
:root {
  /* 히어로 배경 이미지 (사막 위 유향나무 느낌) */
  --hero-bg: url('../img/hero-bg.png');

  /* 컬러 팔레트 */
  --color-primary: #6b7f5e;   /* 세이지 그린 */
  --color-primary-dark: #55684a;
  --color-cream: #f5f1ea;     /* 크림 배경 */
  --color-sand: #ece5d8;
  --color-text: #3f3a33;      /* 따뜻한 브라운 텍스트 */
  --color-text-light: #7a7265;
  --color-white: #fff;
  --color-soft: #8fa183;

  /* 폰트 */
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', sans-serif;

  /* 공통 */
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(63, 58, 51, 0.10);
  --container: 1120px;
  --nav-h: 76px;
}

/* ============ Reset / Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }

.section-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-primary);
}

.section-title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.section-body {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--color-text-light);
}

/* ============ 네비게이션 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(63, 58, 51, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-white);
  transition: color 0.35s ease;
}

.nav-logo span { color: var(--color-primary); }

.nav.scrolled .nav-logo { color: var(--color-text); }

.nav-menu { display: flex; gap: 38px; }

.nav-menu a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 0;
  transition: color 0.35s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after { width: 100%; }

.nav.scrolled .nav-menu a { color: var(--color-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s ease;
}

.nav.scrolled .nav-toggle span { background: var(--color-text); }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 히어로 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 28, 20, 0.35) 0%, rgba(24, 28, 20, 0.30) 45%, rgba(24, 28, 20, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
  animation: fadeUp 1.1s 0.2s ease both;
}

.hero-eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin: 0 auto 42px;
  max-width: 520px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 0.4em;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.55);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ============ 버튼 ============ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 26px rgba(107, 127, 94, 0.4);
}

.btn-primary:hover { background: var(--color-primary-dark); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-light {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-light:hover { background: var(--color-sand); }

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(107, 127, 94, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.text-link:hover { color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* ============ 소개 섹션 ============ */
.about { background: var(--color-cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text { max-width: 460px; }

/* ============ 가치 3종 ============ */
.values { background: var(--color-white); }

.values-head {
  text-align: center;
  margin-bottom: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  padding: 46px 34px;
  background: var(--color-cream);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(107, 127, 94, 0.12);
  border-radius: 50%;
}

.value-icon svg { width: 32px; height: 32px; }

.value-card--flower .value-icon { color: #d98aa6; background: rgba(217, 138, 166, 0.15); }
.value-card--leaf .value-icon { color: #6b8f5e; background: rgba(107, 143, 94, 0.15); }
.value-card--tree .value-icon { color: #8a6a45; background: rgba(138, 106, 69, 0.15); }

.value-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.value-card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-light);
}

/* ============ CTA 배너 ============ */
.cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 130px 0;
  color: var(--color-white);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 36, 28, 0.55);
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 40px);
}

.cta-sub {
  margin: 0 0 36px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* ============ 푸터 ============ */
.footer {
  background: #2f332b;
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 40px;
  text-align: center;
}

.footer-logo {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-logo span { color: var(--color-soft); }

.footer-tag {
  margin: 0 0 30px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--color-white); }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-info {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-info a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease;
}

.footer-info a:hover { color: var(--color-white); }

/* ============ 서브페이지 (게시판·쇼핑몰) ============ */
/* 고정 네비 높이 보정 (테마 contents_wrap / 모바일 container) */
#contents_wrap, #container { padding-top: var(--nav-h); }

/* 테마 하단 슬라이드메뉴 숨김 (AROMA51 네비로 대체) */
.cbp-hrmenu-btm { display: none !important; }

/* ============ 스크롤 reveal 애니메이션 ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 반응형 ============ */
@media (max-width: 900px) {
  .section { padding: 84px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-image { display: flex; justify-content: center; }
  .about-image img { width: 100%; max-width: 320px; }

  .values-grid { grid-template-columns: 1fr; gap: 18px; }
  .value-card { padding: 38px 28px; }

  .cta { background-attachment: scroll; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 8px;
    padding: 40px 36px;
    background: var(--color-cream);
    box-shadow: -12px 0 40px rgba(63, 58, 51, 0.14);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-menu.open { transform: translateX(0); }

  .nav-menu a {
    color: var(--color-text) !important;
    font-size: 17px;
    padding: 10px 0;
  }

  .nav-menu a::after { display: none; }

  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .footer-links { gap: 18px; }
}
