/* ═══════════════════════════════════════
   드레스푸드 공식 홈페이지 스타일시트
   기업형 디자인
═══════════════════════════════════════ */

:root {
  --primary:       #1A5C38;
  --primary-dark:  #0D3320;
  --primary-mid:   #2E7D52;
  --primary-light: #EAF4EE;
  --gold:          #B8902A;
  --gold-light:    #FFF8E7;
  --text:          #1A1A1A;
  --text-sub:      #4A4A4A;
  --text-muted:    #7A7A7A;
  --bg:            #F8F9F7;
  --white:         #FFFFFF;
  --border:        #E2E8E4;
  --border-light:  #F0F4F1;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow:        0 4px 24px rgba(0,0,0,.09);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.13);
  --radius:        10px;
  --radius-lg:     18px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }


/* ════════════════════════════════
   상단 정보 바
════════════════════════════════ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: .45rem 0;
  letter-spacing: .3px;
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 .75rem; opacity: .35; }


/* ════════════════════════════════
   네비게이션
════════════════════════════════ */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--primary-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.navbar-brand { padding: .7rem 0; display: flex; align-items: center; }
.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  color: var(--text-sub) !important;
  padding: 1.4rem .9rem !important;
  font-size: .88rem;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary) !important; font-weight: 700; }

.nav-search-form { position: relative; }
.nav-search-form input {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .42rem 2rem .42rem .85rem;
  font-size: .82rem;
  width: 200px;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
}
.nav-search-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,56,.12);
  background: #fff;
}
.nav-search-form .search-btn {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .85rem;
}

.btn-nav-login {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: .38rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .83rem;
  transition: all .2s;
}
.btn-nav-login:hover { background: var(--primary); color: #fff; }

.btn-nav-join {
  background: var(--primary);
  color: #fff;
  padding: .38rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .83rem;
  border: none;
  transition: background .2s;
}
.btn-nav-join:hover { background: var(--primary-dark); color: #fff; }


/* ════════════════════════════════
   페이지 헤더 바
════════════════════════════════ */
.page-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}
.page-header .label {
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  margin-bottom: .6rem;
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin: 0; }
.breadcrumb-custom { margin-top: .75rem; }
.breadcrumb-custom a { color: rgba(255,255,255,.55); font-size: .8rem; }
.breadcrumb-custom span { color: rgba(255,255,255,.85); font-size: .8rem; }
.breadcrumb-custom .sep { margin: 0 .4rem; color: rgba(255,255,255,.3); }


/* ════════════════════════════════
   공통 버튼
════════════════════════════════ */
.btn-primary-df {
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--primary);
  padding: .7rem 1.8rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all .25s;
  cursor: pointer;
}
.btn-primary-df:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,92,56,.3); }

.btn-outline-df {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: .7rem 1.8rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all .25s;
  cursor: pointer;
}
.btn-outline-df:hover { background: var(--primary); color: #fff !important; }

.btn-gold-df {
  background: var(--gold);
  color: #fff !important;
  border: 2px solid var(--gold);
  padding: .7rem 1.8rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .88rem;
  transition: all .25s;
  cursor: pointer;
}
.btn-gold-df:hover { background: #9a7620; border-color: #9a7620; }


/* ════════════════════════════════
   공통 레이아웃
════════════════════════════════ */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* 배경 유틸리티 — 패딩 포함 (bg-* 단독 사용 시) */
section.bg-white     { background: var(--white);        padding: 5rem 0; }
section.bg-light-green { background: var(--primary-light); padding: 5rem 0; }
section.bg-dark-green  { background: var(--primary-dark); color: #fff; padding: 5rem 0; }

.section-label {
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .6rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: .5rem;
}
.section-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.8; }

.divider {
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.divider-center { margin-left: auto; margin-right: auto; }


/* ════════════════════════════════
   히어로 배너 — 핵심 수정
   carousel-item 과 hero-inner 분리
════════════════════════════════ */
.hero-slider { position: relative; }

/* carousel-item 은 Bootstrap 에 맡기고 display 간섭 금지 */
.hero-slider .carousel-item { /* display 속성 절대 지정 안 함 */ }

.hero-inner {
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
}
.hero-inner .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,51,32,.78) 0%, rgba(13,51,32,.35) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 5rem 0; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  margin-bottom: 1rem;
}
.hero-content .hero-desc {
  font-size: 1.05rem;
  opacity: .88;
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-content .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-btn-main {
  background: #fff;
  color: var(--primary-dark) !important;
  border: none;
  padding: .8rem 2rem;
  border-radius: 7px;
  font-weight: 800;
  font-size: .9rem;
  transition: all .25s;
}
.hero-btn-main:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero-btn-sub {
  background: transparent;
  color: rgba(255,255,255,.9) !important;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: .8rem 2rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s;
}
.hero-btn-sub:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.hero-slider .carousel-indicators button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  transition: all .3s;
}
.hero-slider .carousel-indicators button.active { background: #fff; width: 28px; border-radius: 4px; }

/* 히어로 하단 stat strip */
.hero-strip {
  background: var(--white);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}
.hero-strip-item { padding: 1.4rem 2rem; border-right: 1px solid var(--border-light); }
.hero-strip-item:last-child { border-right: none; }
.hero-strip-item .num { font-size: 1.6rem; font-weight: 900; color: var(--primary-dark); }
.hero-strip-item .lbl { font-size: .78rem; color: var(--text-muted); font-weight: 600; }


/* ════════════════════════════════
   제조 원칙 카드
════════════════════════════════ */
.principle-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  height: 100%;
}
.principle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.principle-icon {
  width: 72px; height: 72px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  transition: background .3s;
}
.principle-card:hover .principle-icon { background: var(--primary); }
.principle-card h5 { font-weight: 800; color: var(--primary-dark); font-size: .95rem; margin-bottom: .4rem; }
.principle-card p { font-size: .83rem; color: var(--text-muted); margin: 0; line-height: 1.7; }


/* ════════════════════════════════
   제품 카드
════════════════════════════════ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.product-card .img-wrap { overflow: hidden; flex-shrink: 0; }
.product-card img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.product-card:hover img { transform: scale(1.05); }
.product-card .card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 4px;
  letter-spacing: .5px;
}
.product-card h5 { font-weight: 800; margin: .55rem 0 .35rem; font-size: .97rem; color: var(--text); }
.product-card p { font-size: .82rem; color: var(--text-muted); margin: 0; flex: 1; }
.product-card .card-footer-row { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border-light); }


/* ════════════════════════════════
   CTA 섹션
════════════════════════════════ */
.cta-section {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -60px; left: 10%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 900; color: #fff; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1rem; }


/* ════════════════════════════════
   공지사항
════════════════════════════════ */
.notice-row {
  display: flex; align-items: center;
  padding: .95rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
  border-radius: var(--radius);
}
.notice-row:hover { background: var(--primary-light); }
.notice-row:last-child { border-bottom: none; }
.notice-pin {
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: .85rem;
}
.notice-title-link { flex: 1; font-weight: 500; color: var(--text); font-size: .9rem; }
.notice-title-link:hover { color: var(--primary); }
.notice-date { font-size: .78rem; color: var(--text-muted); }


/* ════════════════════════════════
   게시판
════════════════════════════════ */
.board-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.board-wrap table { margin: 0; }
.board-wrap thead th { background: var(--primary-dark); color: #fff; font-size: .82rem; font-weight: 600; padding: .9rem 1rem; border: none; }
.board-wrap tbody td { padding: .85rem 1rem; border-color: var(--border-light); vertical-align: middle; font-size: .88rem; }
.board-wrap tbody tr:hover td { background: var(--primary-light); }
.pin-label { background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 3px; }


/* ════════════════════════════════
   폼
════════════════════════════════ */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-label { font-weight: 700; font-size: .85rem; color: var(--text-sub); margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .72rem 1rem;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,56,.12);
  background: #fff;
}


/* ════════════════════════════════
   인증 (로그인/회원가입)
════════════════════════════════ */
.auth-wrap { min-height: 75vh; display: flex; align-items: center; background: var(--bg); padding: 3rem 0; }
.auth-card {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.5rem;
  box-shadow: var(--shadow);
}
.auth-card .auth-logo { font-size: 1.1rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 1.5rem; }
.auth-card h2 { font-size: 1.6rem; font-weight: 900; color: var(--text); margin-bottom: .4rem; }
.auth-card .auth-sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 2rem; }


/* ════════════════════════════════
   제품 상세
════════════════════════════════ */
.product-img-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.product-img-main img { width: 100%; object-fit: cover; }
.product-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--border); cursor: pointer; transition: border-color .2s; }
.product-thumb:hover, .product-thumb.active { border-color: var(--primary); }
.product-tab-nav { border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.product-tab-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  padding: .75rem 1.5rem !important;
  font-size: .88rem;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.product-tab-nav .nav-link.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary);
  background: none;
}
.product-tab-nav .nav-link::after { display: none; }
.product-meta-table dt { font-weight: 700; color: var(--text-sub); font-size: .85rem; padding: .5rem 0; width: 120px; }
.product-meta-table dd { color: var(--text-muted); font-size: .85rem; padding: .5rem 0; border-bottom: 1px solid var(--border-light); }


/* ════════════════════════════════
   통계 대시보드
════════════════════════════════ */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.stat-card.green::before { background: var(--primary); }
.stat-card.blue::before { background: #1976D2; }
.stat-card.orange::before { background: #F57C00; }
.stat-card.red::before { background: #C62828; }
.stat-card .stat-num { font-size: 2rem; font-weight: 900; }
.stat-card .stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-top: .25rem; }
.stat-card .stat-icon {
  position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 2.5rem; opacity: .08;
}
.chart-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.chart-card h5 { font-weight: 800; font-size: .95rem; color: var(--text); margin-bottom: 1.4rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-light); }
.top-page-row { display: flex; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border-light); }
.top-page-row:last-child { border-bottom: none; }
.top-page-rank { width: 22px; height: 22px; background: var(--primary-light); color: var(--primary); border-radius: 4px; display:flex;align-items:center;justify-content:center; font-size:.7rem; font-weight:800; flex-shrink:0; }
.top-page-path { flex:1; font-size:.8rem; color: var(--text-muted); margin: 0 .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-page-count { font-size:.82rem; font-weight:700; color: var(--primary); }
.page-bar { height: 4px; background: var(--primary-light); border-radius: 2px; margin-top:.35rem; }
.page-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; }
.pending-badge { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 5px; }


/* ════════════════════════════════
   푸터
════════════════════════════════ */
footer {
  background: #111816;
  color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
}
.footer-brand-name { font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: .2rem; }
.footer-brand-sub { font-size: .68rem; color: rgba(255,255,255,.35); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-col-title { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
footer .divider-line { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 1.5rem; }
footer .copyright { font-size: .78rem; color: rgba(255,255,255,.28); padding-bottom: 1.5rem; }
.footer-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin: .25rem .25rem 0 0;
}


/* ════════════════════════════════
   팝업
════════════════════════════════ */
.popup-modal .modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
.popup-footer { background: #f0f0f0; padding: .6rem 1rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }


/* ════════════════════════════════
   메시지 토스트
════════════════════════════════ */
.msg-bar { border-radius: var(--radius); border: none; font-size: .88rem; }


/* ════════════════════════════════
   반응형
════════════════════════════════ */
@media (max-width: 991px) {
  .topbar { display: none; }
  .navbar-collapse { background: var(--white); padding: .5rem 0 1rem; border-top: 1px solid var(--border-light); }
  .nav-link { padding: .7rem .5rem !important; border-bottom: 1px solid var(--border-light); }
  .nav-link::after { display: none; }
  .hero-inner { min-height: 420px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-strip-item { padding: 1rem; }
  .hero-strip-item .num { font-size: 1.3rem; }
}
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.55rem; }
  .hero-inner { min-height: 360px; }
  .hero-content { padding: 3rem 0; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content .hero-desc { font-size: .9rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .form-card { padding: 1.5rem; }
}


/* ════════════════════════════════════════════════════
   ✦ ENHANCEMENT BLOCK — 애니메이션 & 비주얼 강화
════════════════════════════════════════════════════ */

/* ── Scroll Reveal ──────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal       { transform: translateY(32px); }
.reveal-left  { transform: translateX(-38px); }
.reveal-right { transform: translateX(38px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stagger-item.is-visible { opacity: 1; transform: none; }


/* ── Navbar Scroll State ────────────────────────── */
.navbar { transition: box-shadow 0.35s ease, background-color 0.35s ease; }
.navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


/* ── Hero Orbs (CSS-only floating circles) ──────── */
.hero-inner::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%);
  border-radius: 50%;
  animation: orbFloat 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.hero-inner::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  bottom: -80px; left: 8%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 65%);
  border-radius: 50%;
  animation: orbFloat 13s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 1;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

.hero-content {
  animation: heroSlideUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

.hero-tag {
  animation: heroSlideUp 0.7s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  backdrop-filter: blur(8px);
}


/* ── Hero Strip Numbers — Gradient ─────────────── */
.hero-strip-item .num {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Principle Cards — bottom accent bar ────────── */
.principle-card {
  position: relative;
  overflow: hidden;
}
.principle-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.principle-card:hover::after { transform: scaleX(1); }

/* SVG icons inside principle/icon containers */
.principle-icon svg, .icon-wrap svg {
  width: 36px; height: 36px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
  display: block;
}
.principle-card:hover .principle-icon svg,
.principle-card:hover .icon-wrap svg { stroke: #fff; }

/* icon-wrap (franchise.html alias) */
.icon-wrap {
  width: 72px; height: 72px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  transition: background 0.3s, transform 0.35s;
}
.principle-card:hover .icon-wrap,
.principle-card:hover .principle-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(-4deg);
}
.principle-card:hover .principle-icon { font-size: 2rem; }


/* ── Product Cards — top accent bar on hover ────── */
.product-card { position: relative; }
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transition: transform 0.32s ease;
  z-index: 2;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover { border-color: rgba(26,92,56,.25); }


/* ── CTA Section — dot grid pattern ────────────── */
.cta-section {
  background: linear-gradient(135deg, #091a0f 0%, var(--primary-dark) 45%, #163322 100%);
  position: relative;
  overflow: hidden;
}
.cta-section .cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
/* Remove old ::before/::after circles — replaced by cta-dots */
.cta-section::before,
.cta-section::after { display: none; }


/* ── Buttons — Gradient Upgrade ─────────────────── */
.btn-primary-df {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-color: transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary-df::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}
.btn-primary-df:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,92,56,.32);
}
.btn-primary-df:hover::after { opacity: 1; }

.hero-btn-main { letter-spacing: 0.4px; }
.hero-btn-main:hover { transform: translateY(-3px) !important; box-shadow: 0 10px 28px rgba(0,0,0,.22); }


/* ── Notice Row — left accent bar ───────────────── */
.notice-row { position: relative; transition: background 0.15s, padding-left 0.2s ease; }
.notice-row::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}
.notice-row:hover::before { transform: scaleY(1); }
.notice-row:hover { padding-left: 1.9rem !important; }


/* ── Form Section Card (inquiry pages) ─────────── */
.form-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid), var(--primary-light));
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff !important;
  border: none;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: all .28s;
  cursor: pointer;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,92,56,.32);
  color: #fff !important;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: .42rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .83rem;
  transition: all .2s;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}


/* ── Back to Top Button ──────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.32s, visibility 0.32s, transform 0.32s, box-shadow 0.32s;
  z-index: 998;
  box-shadow: 0 4px 18px rgba(26,92,56,.38);
  font-size: 1rem;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26,92,56,.42);
}


/* ── Section Label Underline Dot ────────────────── */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 4px;
}


/* ── Board Table Polish ──────────────────────────── */
.board-table { border-radius: var(--radius-lg); overflow: hidden; }
.board-table thead th {
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .9rem 1rem;
  border: none;
}
.board-table tbody tr { transition: background 0.15s; }
.board-table tbody tr:hover td { background: var(--primary-light); }
.pin-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 4px;
}


/* ── Responsive Additions ───────────────────────── */
@media (max-width: 767px) {
  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px; font-size: .9rem; }
  .form-section { padding: 1.8rem 1.4rem; }
  .hero-inner::before, .hero-inner::after { display: none; }
}
