:root {
    --primary-color: #8FBC8F;
    --accent-color: #D4AF37;
    --bg-color: #FDFBF7;
    --text-dark: #2F4F4F;
    --text-light: #666;
    --white: #ffffff;
    --transition-base: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

/* Base & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, .header__logo, .section-title { font-family: var(--font-serif); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: #f7f3ed; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: none; transition: var(--transition-base); font-weight: 700; }
.btn--main { padding: 15px 40px; background-color: var(--accent-color); color: var(--white); border-radius: 50px; position: relative; z-index: 2; }
.btn--main:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }
.btn--small { padding: 8px 20px; background-color: var(--primary-color); color: white; border-radius: 5px; }
.btn--primary { background: var(--primary-color); color: #fff; padding: 15px 30px; }

/* Header */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition-base); }
.header.scrolled { background: rgba(255, 255, 255, 0.95); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header__nav { display: flex; justify-content: space-between; align-items: center; }
.header__logo { font-size: 1.5rem; font-weight: 700; z-index: 1100; }
.header__logo span { color: var(--accent-color); }
.header__menu { display: flex; list-style: none; }
.header__item { margin-left: 30px; }
.header__link { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: 0.3s; }
.header:not(.scrolled) .header__link { color: var(--white); }
.header.scrolled .header__link { color: var(--text-dark); }

.header__overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7); z-index: 900;
    opacity: 0; visibility: hidden; transition: var(--transition-base);
}
.header__overlay.is-active { opacity: 1; visibility: visible; }

/* Hamburger */
.header__toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 21px; background: none; border: none; cursor: pointer; z-index: 1100;
}
.header__toggle-bar { width: 100%; height: 3px; background-color: var(--white); transition: var(--transition-base); border-radius: 3px; }
.header.scrolled .header__toggle-bar { background-color: var(--text-dark); }
.header__toggle.is-active .header__toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--text-dark); }
.header__toggle.is-active .header__toggle-bar:nth-child(2) { opacity: 0; }
.header__toggle.is-active .header__toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--text-dark); }

/* Hero */
.hero { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero__slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero__slide { width: 100%; height: 100vh; background-size: cover; background-position: center; }
.hero__content { position: relative; z-index: 10; color: var(--white); text-align: center; pointer-events: none; }
.hero__title { font-size: 3.5rem; margin-bottom: 20px; }
.hero__desc { font-size: 1.2rem; margin-bottom: 40px; }

/* Slick Basic Dots/Arrows */
.slick-prev, .slick-next { z-index: 20; width: 50px; height: 50px; }
.slick-prev { left: 30px; } .slick-next { right: 30px; }
.slick-dots { bottom: 30px; }
.slick-dots li button:before { color: #fff; font-size: 12px; }

/* Features & Products */
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; position: relative; z-index: 2; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { text-align: center; padding: 40px; background: var(--white); border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.products {
    position: relative;
    background: url("../images/products-bg.jpg") center/cover no-repeat;
    background-attachment: fixed;
    color:#333333;
    text-align: center;
}

/* 사용자 요청 배경 유지 */
.products-overlay {
    position: absolute; inset: 0;
    background: #171003;
    background: -webkit-linear-gradient(90deg, rgba(23, 16, 3, 1) 0%, rgba(36, 14, 5, 1) 35%, rgba(42, 43, 13, 1) 100%);
    background: -moz-linear-gradient(90deg, rgba(23, 16, 3, 1) 0%, rgba(36, 14, 5, 1) 35%, rgba(42, 43, 13, 1) 100%);
    background: linear-gradient(90deg, rgba(23, 16, 3, 1) 0%, rgba(36, 14, 5, 1) 35%, rgba(42, 43, 13, 1) 100%);
    opacity:0.95;
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; position: relative; z-index: 2; }
.product-item { background: var(--white); padding: 20px; border-radius: 10px; transition: var(--transition-base); }
.product-item:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* 이미지 박스 최적화 */
.product-item__img {
    height: 250px; overflow: hidden; border-radius: 10px; margin-bottom: 15px; background-color: #eee; cursor: pointer;
}
.product-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-item:hover .product-item__img img { transform: scale(1.1); }

/* --- 업그레이드된 라이트박스 슬라이더 CSS --- */
/* --- Enhanced Lightbox Slider Styles --- */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95);
}

.lightbox__container {
    width: 100%; /* 컨테이너 너비를 화면 전체로 확장 */
    max-width: 1400px; /* 최대 너비 증가 */
    margin: 0 auto;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    padding: 0 60px; /* 화살표 공간 확보 */
}

/* 슬라이드 개별 아이템 스타일 (기본 상태: 양옆 이미지) */
.lightbox__slider .slick-slide {
    padding: 20px; /* 이미지 간 간격 */
    transition: all 0.4s ease-in-out; /* 부드러운 전환 효과 */
    opacity: 0.4; /* 투명도 낮춤 */
    transform: scale(0.85); /* 크기 축소 */
}

/* 슬라이드 가운데 아이템 스타일 (활성 상태) */
.lightbox__slider .slick-center {
    opacity: 1; /* 불투명하게 */
    transform: scale(1.1); /* 원래 크기보다 약간 확대하여 강조 */
    z-index: 10; /* 다른 이미지 위로 올라오게 */
}

/* 이미지 자체 스타일 조정 */
.lightbox__slider-item img {
    width: auto;
    max-width: 100%;
    max-height: 65vh; /* 3개가 보일 때 높이가 너무 크지 않게 조정 */
    margin: 0 auto;
    display: block;
    border-radius: 8px; /* 부드러운 모서리 */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); /* 입체감을 위한 그림자 */
}

/* 닫기 버튼 */
.lightbox__close {
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 50px; cursor: pointer; z-index: 2100;
}

/* 화살표 위치 재조정 */
.lightbox .slick-prev:before, .lightbox .slick-next:before { font-size: 50px; opacity: 0.7; color: #fff; transition: 0.3s; }
.lightbox .slick-prev:hover:before, .lightbox .slick-next:hover:before { opacity: 1; color: var(--accent-color); }
.lightbox .slick-prev { left: 10px; z-index: 20; }
.lightbox .slick-next { right: 10px; z-index: 20; }

/* 모바일 대응 */
@media (max-width: 768px) {
    /* 모바일에서는 이미지가 작으므로 scale 효과를 줄임 */
    .lightbox__slider .slick-slide { padding: 5px; transform: scale(0.9); }
    .lightbox__slider .slick-center { transform: scale(1); }
    .lightbox__container { padding: 0 30px; }
    .lightbox .slick-prev { left: 0; }
    .lightbox .slick-next { right: 0; }
    .lightbox__slider-item img { max-height: 50vh; } /* 모바일 높이 축소 */
}
/* KRDS-aligned UI layer: accessible, clear, responsive, 8px rhythm */
:root {
    --primary-color: #087f5b;
    --primary-strong: #056044;
    --accent-color: #b45309;
    --bg-color: #f7faf8;
    --surface-color: #ffffff;
    --surface-muted: #eef5f1;
    --text-dark: #172b24;
    --text-light: #40564d;
    --border-color: #b8c9c0;
    --focus-color: #005fcc;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Pretendard GOV', 'Pretendard', 'Noto Sans KR', sans-serif;
    --transition-base: 180ms ease-out;
}

html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-dark); font-size: 17px; line-height: 1.5; }
.container { max-width: 1200px; padding-inline: 24px; }
.section-padding { padding-block: clamp(64px, 8vw, 96px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3000; padding: 12px 16px; background: #fff; color: var(--primary-strong); border: 2px solid var(--focus-color); transform: translateY(-160%); transition: transform var(--transition-base); }
.skip-link:focus { transform: translateY(0); }
:where(a, button, input):focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }

.btn { min-height: 48px; border-radius: 4px; padding: 12px 24px; font-size: 1rem; font-weight: 700; transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base); }
.btn:hover { transform: translateY(-2px); }
.btn--main, .btn--primary { background: var(--primary-color); color: #fff; }
.btn--main:hover, .btn--primary:hover { background: var(--primary-strong); box-shadow: 0 4px 12px rgba(8,127,91,.24); }
.btn--small { min-height: 44px; background: var(--primary-color); color: #fff; border-radius: 4px; }

.header { padding: 16px 0; }
.header.scrolled { background: rgba(255,255,255,.98); box-shadow: 0 2px 8px rgba(23,43,36,.12); }
.header__logo { color: inherit; text-decoration: none; font-size: 1.45rem; letter-spacing: -.04em; }
.header__logo span { color: #a34b0a; }
.header__link { padding: 10px 4px; text-underline-offset: 4px; }
.header__link:hover { text-decoration: underline; }
.header__toggle { width: 44px; height: 44px; padding: 10px 7px; }
.header__toggle-bar { height: 3px; border-radius: 0; }

.hero { min-height: 680px; height: min(86vh, 800px); }
.hero__content { max-width: 1200px; padding-inline: 24px; text-align: left; }
.hero__title { max-width: 760px; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.hero__desc { max-width: 560px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero__slide { background-position: center; }
.hero__slider::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,39,28,.72), rgba(9,39,28,.18) 68%, rgba(9,39,28,.24)); pointer-events: none; }

.section-title { margin-bottom: 40px; text-align: left; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.04em; }
.features { background: var(--bg-color); }
.features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card { padding: 32px 28px; text-align: left; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 4px; box-shadow: none; }
.feature-card__icon { margin-bottom: 16px; font-size: 2rem; }
.feature-card__title { margin-bottom: 8px; font-size: 1.25rem; }
.feature-card__text { color: var(--text-light); }

.products { color: #f4fbf7; }
.products-overlay { background: #12382b; opacity: .94; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-item { padding: 16px; border-radius: 4px; border: 1px solid #d2e0d9; box-shadow: none; text-align: left; }
.product-item:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.product-item__img { height: 220px; border-radius: 2px; margin-bottom: 16px; }
.product-item__name { margin-bottom: 8px; font-size: 1.1rem; }
.product-item__price { color: var(--text-light); font-size: .94rem; line-height: 1.7; }

.cta-section { background: var(--surface-muted); }
.cta-section__container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 48px; align-items: center; }
.cta-section__title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.3; letter-spacing: -.04em; }
.cta-section__desc { color: var(--text-light); }
.cta-section__input { min-height: 48px; border: 1px solid #6d8178; border-radius: 4px 0 0 4px; padding: 12px 16px; font: inherit; }
.cta-section__btn { border-radius: 0 4px 4px 0; white-space: nowrap; }
.cta-section__policy, .form-status { margin-top: 8px; color: var(--text-light); font-size: .88rem; }
.form-status { min-height: 1.4em; color: var(--primary-strong); font-weight: 700; }
.footer { padding: 32px 0; background: #12382b; color: #f4fbf7; }
.footer__sub { color: #d3e6dc; }

@media (max-width: 1023px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-section__container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
    .container, .hero__content { padding-inline: 16px; }
    .header__menu { display: none; position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 8px; padding: 96px 24px 32px; background: #fff; box-shadow: 0 8px 20px rgba(23,43,36,.16); }
    .header__menu.is-active { display: flex; }
    .header__item { margin-left: 0; }
    .header__link, .header:not(.scrolled) .header__link { display: block; padding: 12px 4px; color: var(--text-dark); font-size: 1.05rem; }
    .pc-only-btn { display: none; }
    .header__toggle { display: flex; }
    .header__toggle-bar { background-color: var(--white); }
    .header.scrolled .header__toggle-bar, .header__toggle.is-active .header__toggle-bar { background-color: var(--text-dark); }
    .hero { min-height: 620px; height: 82vh; }
    .hero__title { font-size: clamp(2rem, 10vw, 3rem); }
    .hero__desc { font-size: 1rem; }
    .features__grid, .product-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px; }
    .product-item__img { height: 240px; }
    .cta-section__input-group { display: flex; flex-direction: column; gap: 8px; }
    .cta-section__input, .cta-section__btn { border-radius: 4px; width: 100%; }
    .pc-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .hero__slider { display: none; }
    .hero { background: #315b49 url('../images/slide01.jpg') center/cover; }
}