/* ===================================================
   AMITECH - Premium Agricultural Solutions
   Main Stylesheet
   =================================================== */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 메뉴 앵커(#company 등) 이동 시 부드럽게 스크롤 + 고정 헤더 높이만큼 여백 */
html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
    font-family: 'Poppins', sans-serif;
    max-width: 1920px;
    margin: 0 auto !important;
    color: #333;
    overflow-x: hidden;
}

p { margin: 0; }
h2 { margin: 0; }

.w1300 { max-width: 1300px; margin: 0 auto; }

.flex-box {
    display: flex;
    align-items: center;
}

/* ===== HEADER ===== */
#header {
    height: 110px;
    z-index: 9999;
    top: 0;
    width: 100%;
    max-width: 1920px;
    transition: all 0.6s;
    align-items: center;
    position: fixed;
}

#header.scroll-on {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
}

.header-wrap {
    max-width: 1500px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 40px;
}

.h-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.h-logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #8BC34A;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.h-logo-img { height: 56px; width: auto; display: block; }
.f-logo-img { height: 46px; width: auto; display: block; flex: 0 0 auto; }

.h-logo-text {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
}

.h-logo-sub {
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 400;
}

#h-content {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

#h-content ul {
    list-style: none;
    display: flex;
    padding: 0;
    gap: 60px;
}

#h-content li {
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

#h-content li a { color: inherit; text-decoration: none; }
#h-content li:hover, #h-content li.is-active { color: #8BC34A; }

#h-content li::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8BC34A;
    transition: width 0.3s;
}

#h-content li:hover::after, #h-content li.is-active::after { width: 100%; }

/* 우측 상단 Contact Us(전화기) 버튼: 숨김 처리 — 자리는 유지해 메뉴 위치가 그대로입니다.
   다시 보이게 하려면 아래 visibility: hidden; 한 줄만 지우세요. */
.h-contact-btn {
    visibility: hidden;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Poppins';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.h-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100%;
    height: 940px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide-bg {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;  /* fallback if image fails to load */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.hero-content .sub-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: all 0.3s;
}

.hero-btn:hover { background: #fff; color: #1a4a1a; }

.slider-dots {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active { background: #fff; }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.slider-nav:hover { background: rgba(255,255,255,0.3); }
.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* ===== SECTION COMMON ===== */
.section-wrap { padding: 100px 0; }

.section-ti {
    font-size: 18px;
    line-height: 36px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
}

.section-to {
    font-size: 50px;
    line-height: 60px;
    font-weight: 600;
    text-align: center;
    padding-top: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -.02em;
}

/* ===== ABOUT US SECTION ===== */
:root {
    --g: #2E7D32;
    --g-deep: #1B5E20;
    --g-lite: #8BC34A;
    --ink: #111512;
    --ink-2: #4B524C;
    --ink-3: #8A918B;
    --rule: #DFE3DE;
    --paper-2: #F3F5F1;
    --paper-3: #E6EAE4;
    --ease: cubic-bezier(.22, .8, .3, 1);
}

#company { background: #fff; position: relative; overflow: hidden; }
#company .section-ti { color: var(--g); }
#company .section-to { color: #1c1c1c; }
#company .section-wrap { position: relative; z-index: 1; }

.ghost {
    position: absolute; right: -20px; top: 40px;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 190px; line-height: 1;
    letter-spacing: -.04em; color: #F2F5F0; white-space: nowrap; pointer-events: none; user-select: none;
}

.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 70px;
    padding-top: 70px; align-items: start;
}
.about-lead {
    font-family: 'Poppins', sans-serif; font-size: 28px; line-height: 1.45; font-weight: 600;
    color: #1c1c1c; letter-spacing: -.01em;
}
.about-lead em { font-style: normal; color: var(--g); }
.about-body { margin-top: 28px; }
.about-body p { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin-bottom: 14px; }

.about-figs {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: 34px; border-top: 1px solid var(--rule);
}
.about-fig { padding: 20px 0 0; }
.about-fig b { display: block; font-size: 30px; font-weight: 700; color: var(--g-deep); letter-spacing: -.02em; }
.about-fig span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }

.about-cards {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.acard {
    position: relative; width: 100%; height: 100%; min-height: 150px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 22px 24px 20px; background: #fff; border: 1px solid var(--rule);
    font-family: 'Poppins', sans-serif; text-align: left; cursor: pointer; color: var(--ink);
    transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.acard::before {
    content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
    background: var(--g); transform: scaleY(0); transform-origin: 50% 0;
    transition: transform .35s var(--ease);
}
.acard:hover { border-color: #b9c4b8; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(27, 94, 32, .08); }
.acard:hover::before { transform: scaleY(1); }
.acard-no { font-size: 11px; letter-spacing: .1em; color: var(--g); font-weight: 600; }
.acard-fig { position: absolute; right: 22px; top: 20px; font-size: 20px; color: var(--ink-3); transition: color .35s var(--ease); }
.acard:hover .acard-fig { color: var(--g); }
.acard b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin-top: 6px; }
.acard-desc { font-size: 13.4px; color: var(--ink-3); }
.acard-go {
    margin-top: auto; padding-top: 10px; color: var(--g); font-size: 15px;
    opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.acard:hover .acard-go { opacity: 1; transform: none; }

.about-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.panel { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #1c1c1c; }
.panel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.panel:hover img { transform: scale(1.05); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72)); }
.panel figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: #fff; }
.panel figcaption b { display: block; font-size: 18px; font-weight: 600; }
.panel figcaption span { display: block; margin-top: 4px; font-size: 13px; opacity: .8; }

/* ===== PRODUCTS SECTION ===== */
#products {
    background-image:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('../img/bg_03.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 900px;
}

#products .section-ti { color: #8BC34A; }
#products .section-to { color: #fff; }

.products-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 50px;
    gap: 30px;
}

.product-box {
    width: 235px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s;
    background: #1a1a1a;
}

.product-box:hover { transform: translateY(-15px); }

/* -- Product Box: Image Thumbnail -- */
.product-box-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-box-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-box:hover .product-box-img { transform: scale(1.08); }
/* 실제 제품 사진(검정 배경): 자르지 않고 통째로 */
.product-box-img.is-photo { object-fit: contain; background: #000; padding: 6px 0; }

/* -- Product Box: Info Area -- */
.product-box-info {
    padding: 16px 18px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
}

.product-box-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 6px;
}

.product-box-kr {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.product-box-cat {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 3px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.product-box-spec {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

.product-box-badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.badge-best { background: #FF8F00; }
.badge-new { background: #2E7D32; }
.badge-organic { background: #00897B; }

/* ===== TECHNOLOGY SECTION ===== */
#technology {
    background-image:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('../img/bg_04.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 750px;
}

#technology .section-ti { color: #64B5F6; }
#technology .section-to { color: #fff; }

.tech-grid {
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
    gap: 30px;
}

.tech-box {
    width: 400px;
    height: 620px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* Tech box top image (500x500 — scaled to box width ~400) */
.tech-box-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.tech-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-box:hover .tech-box-image img {
    transform: scale(1.05);
}

.tech-links-wrap {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    width: 320px;
}

.tech-link {
    width: 320px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s;
}

.tech-link:last-child { border-bottom: none; }
.tech-link:hover { padding-left: 8px; }

.tech-link p {
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s;
}

.tech-link:hover p { color: #8BC34A; }

.tech-link-arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s;
}

.tech-link:hover .tech-link-arrow {
    background: #8BC34A;
    border-color: #8BC34A;
}

.tech-box-header {
    position: absolute;
    top: 300px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    width: 100%;
}

.tech-box-header.no-image {
    top: 30px;
}

.tech-box-header .title { font-size: 22px; font-weight: 600; }
.tech-box-header .sub { font-size: 13px; opacity: 0.6; margin-top: 6px; }

/* -- 기술 카드 (3개) -- */
.tcard {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 30px; overflow: hidden;
    cursor: pointer; text-align: left; color: #fff; font-family: 'Poppins', sans-serif;
    transition: transform .5s, box-shadow .5s;
}
.tcard:hover { transform: translateY(-12px); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.tcard-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tcard:hover .tcard-img img { transform: scale(1.06); }
.tcard-img > i { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 72px; opacity: .9; }
.tcard-img.is-fallback img { display: none; }
.tcard-img.is-fallback > i { display: flex; }
.tcard-body { display: flex; flex-direction: column; flex: 1; padding: 30px 34px 34px; }
.tcard-no { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #8BC34A; }
.tcard b { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.tcard em { margin-top: 4px; font-style: normal; font-size: 13px; opacity: .6; }
.tcard-desc { margin-top: 16px; font-size: 14.6px; line-height: 1.65; opacity: .85; }
.tcard-go {
    margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; color: #8BC34A;
}
.tcard-go i { transition: transform .3s; }
.tcard:hover .tcard-go i { transform: translateX(6px); }

/* ===== CONTACT / CTA ===== */
#contact {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

#contact h2 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -.01em;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
}

#contact p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.contact-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.contact-btn {
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins';
    cursor: pointer;
}

.contact-btn-white { background: #fff; color: #1B5E20; }
.contact-btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.contact-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.contact-btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

/* ===== FOOTER ===== */
#footer { background: #1c1c1c; }

#footer .wrap {
    padding: 35px 0;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.f-logo-text {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.f-txt {
    color: #ccc;
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
}

.f-txt span { color: #9c9c9c; }
.f-txt a { color: inherit; text-decoration: none; }
.f-txt a:hover { color: #8BC34A; }
.f-copyright { font-size: 13px; color: #666; margin-top: 5px; }

/* ===== MODAL (슬라이드형 팝업) ===== */
body.is-locked { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; }
.modal.is-open { display: flex; }
.modal-scrim { position: absolute; inset: 0; background: rgba(8, 12, 9, .86); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.modal-panel {
    position: relative; width: 1300px; max-width: calc(100vw - 40px);
    height: 750px; max-height: calc(100vh - 40px);
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; animation: rise .34s var(--ease); color: var(--ink);
}
.modal-panel.is-tall { height: 900px; }

.modal-close {
    position: absolute; right: 0; top: 0; z-index: 5; width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; border: 0; font-size: 18px; cursor: pointer; transition: background .25s;
}
.modal-close:hover { background: var(--g); }
.modal-close:focus, .pop-arrow:focus, .acard:focus { outline: none; }
.modal-close:focus-visible, .pop-arrow:focus-visible, .acard:focus-visible { outline: 2px solid var(--g-lite); outline-offset: 2px; }

.pop-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.pop-slide {
    position: absolute; inset: 0; overflow-y: auto; padding: 62px 76px 90px;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s var(--ease);
}
.pop-slide.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.is-tall .pop-slide { padding: 52px 66px 90px; }

.pop-head { margin-bottom: 34px; padding-right: 60px; }
.is-tall .pop-head { margin-bottom: 30px; }
.pop-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g); }
.pop-head h3 { margin: 12px 0 0; font-size: 37px; font-weight: 600; line-height: 1.16; letter-spacing: -.02em; }
.pop-lead { margin: 14px 0 0; font-size: 15.6px; line-height: 1.6; color: var(--ink-2); max-width: 76ch; }

@media (max-height: 940px) {
    .is-tall .pop-slide { padding: 36px 60px 84px; }
    .is-tall .pop-head { margin-bottom: 22px; }
    .is-tall .pop-head h3 { font-size: 31px; }
    .is-tall .pop-lead { margin-top: 10px; }
}

.sub-h {
    display: flex; align-items: center; gap: 14px; margin: 26px 0 14px;
    font-size: 15px; font-weight: 600; color: var(--ink);
}
.sub-h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.pop-split-body > .sub-h:first-child, .pop-cols .sub-h:first-child { margin-top: 0; }

/* 번호 불릿 */
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: bl; }
.bullets li { position: relative; padding-left: 38px; font-size: 14.8px; line-height: 1.6; color: var(--ink-2); counter-increment: bl; }
.bullets li::before {
    content: counter(bl, decimal-leading-zero); position: absolute; left: 0; top: .15em;
    font-size: 11px; font-weight: 600; color: var(--g); letter-spacing: .04em;
}

/* 2단 */
.pop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.pop-cols--wide { grid-template-columns: 1.35fr 1fr; gap: 56px; }
.pop-cols--road { grid-template-columns: 1.25fr 1fr; gap: 56px; }
.pop-prose p { margin: 0 0 16px; font-size: 15.2px; line-height: 1.75; color: var(--ink-2); }
.pop-sign { margin: 26px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--rule); }
.pop-sign b { display: block; font-size: 19px; font-weight: 600; color: var(--ink); }
.pop-sign span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }

.pop-dl { margin: 0; }
.pop-dl > div { display: flex; gap: 22px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pop-dl dt { flex: 0 0 130px; font-size: 13px; color: var(--ink-3); }
.pop-dl dd { flex: 1; margin: 0; font-size: 14.4px; color: var(--ink); }

.pop-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pop-fig { padding: 26px 24px; background: var(--paper-2); }
.pop-fig b { display: block; font-size: 33px; font-weight: 700; letter-spacing: -.02em; color: var(--g-deep); }
.pop-fig span { display: block; margin-top: 5px; font-size: 12.6px; color: var(--ink-3); }

/* 연혁 */
.pop-tl { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; }
.pop-tl > li { padding: 20px 0; border-top: 1px solid var(--rule); }
.pop-tl .y { display: block; margin-bottom: 8px; font-size: 22px; font-weight: 700; color: var(--g); letter-spacing: -.01em; }
.pop-tl ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pop-tl ul li { position: relative; padding-left: 16px; font-size: 14.4px; color: var(--ink-2); }
.pop-tl ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--ink-3); }

/* 인증 */
.pop-certgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.pop-certgrid article { position: relative; padding: 34px 28px 36px; background: var(--paper-2); }
.pop-certgrid .no { position: absolute; right: 22px; top: 20px; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .1em; }
.pop-certgrid i {
    width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--g); font-size: 24px; border: 1px solid var(--rule);
}
.pop-certgrid h4 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pop-certgrid p { font-size: 13.4px; line-height: 1.55; color: var(--ink-3); }

/* 필러 · 로드맵 */
.pop-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pop-pillars article { padding: 32px 30px 36px; background: var(--paper-2); }
.pop-pillars .no, .pop-roads .no { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--g); }
.pop-pillars h4 { margin: 14px 0 12px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.pop-pillars p { font-size: 14.4px; line-height: 1.66; color: var(--ink-2); }
.pop-roads article { display: flex; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.pop-roads article:first-child { padding-top: 0; }
.pop-roads .no { flex: 0 0 auto; padding-top: 4px; }
.pop-roads h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.pop-roads p { font-size: 14.2px; line-height: 1.62; color: var(--ink-2); }
.pop-commit { padding: 28px 30px 32px; background: var(--paper-2); }
.pop-commit h4 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }

/* R&D 프로세스 */
.pop-flow { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; counter-reset: none; }
.pop-flow li { position: relative; padding: 30px 24px 34px; background: var(--paper-2); }
.pop-flow li:not(:last-child)::after {
    content: "\f054"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px;
    position: absolute; right: -9px; top: 50%; z-index: 1; width: 18px; height: 18px; margin-top: -9px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--g); color: #fff;
}
.pop-flow .no { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--g); }
.pop-flow i { display: block; margin-top: 20px; font-size: 28px; color: var(--g-deep); }
.pop-flow h4 { margin: 18px 0 8px; font-size: 17px; font-weight: 600; }
.pop-flow p { font-size: 13.4px; line-height: 1.55; color: var(--ink-2); }

.pop-callout {
    display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 20px 24px;
    background: linear-gradient(135deg, var(--g-deep), var(--g)); color: #fff;
}
.pop-callout > i { font-size: 26px; opacity: .9; }
.pop-callout b { display: block; font-size: 13px; font-weight: 500; opacity: .85; }
.pop-callout a { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; color: #fff; text-decoration: none; }

/* 이미지 + 본문 (제품 · 기술) */
.pop-split { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
.pop-split--lean { grid-template-columns: 480px 1fr; }
.pop-split-body > p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

.pop-shot { position: relative; margin: 0; }
.pop-shot img, .pop-tile { width: 100%; aspect-ratio: 4 / 3; display: block; }
.pop-shot img { object-fit: cover; background: var(--paper-3); }
.pop-shot.is-contain { background: var(--paper-2); }
.pop-shot.is-contain img { aspect-ratio: 1 / 1; object-fit: contain; padding: 40px; background: transparent; }
.pop-tile { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; }
.pop-shot > .pop-tile:only-child, .pop-shot > .pop-tile:first-child { display: flex; }
.pop-shot.is-fallback img { display: none; }
.pop-shot.is-fallback .pop-tile { display: flex; }
.pop-tile i { font-size: 64px; opacity: .9; }
.pop-tile span { font-size: 17px; font-weight: 600; text-align: center; padding: 0 30px; }
.pop-shot figcaption { margin-top: 10px; font-size: 12.6px; color: var(--ink-3); background: #fff; padding-top: 0; }
.pop-shot.is-contain figcaption { margin: 0; padding: 10px 0 0; }
.pop-badge {
    position: absolute; left: 18px; top: 18px; z-index: 1; padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #fff;
}

.pop-tblwrap { margin: 0 0 8px; overflow-x: auto; }
.pop-tbl { width: 100%; border-collapse: collapse; }
.pop-tbl th {
    padding: 10px 14px 10px 0; text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink);
}
.pop-tbl td { padding: 13px 14px 13px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule); vertical-align: top; }
.pop-tbl td:first-child { color: var(--ink); font-weight: 500; }

.pop-chips { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.pop-chips h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.pop-chiprow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pop-chiprow span { padding: 10px 14px; background: var(--paper-2); font-size: 14px; font-weight: 600; color: var(--ink); }
.pop-chiprow em { display: block; font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }

/* 관련 링크 */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist button {
    width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 0;
    background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer;
    font-family: 'Poppins', sans-serif; text-align: left; color: var(--ink);
}
.linklist .ll-ico { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.linklist button > span:nth-child(2) { flex: 1; font-size: 15px; font-weight: 600; }
.linklist small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.linklist button > i { color: var(--g); transition: transform .3s var(--ease); }
.linklist button:hover > i { transform: translateX(4px); }

/* 기술 → 적용 제품 카드 */
.pop-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pop-prod {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); padding: 0;
    cursor: pointer; font-family: 'Poppins', sans-serif; text-align: left; color: var(--ink); position: relative;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pop-prod:hover { border-color: var(--g); transform: translateY(-3px); }
.pop-prod-img { display: block; aspect-ratio: 4 / 3; }
.pop-prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.pop-prod-body { display: block; padding: 18px 20px 22px; }
.pop-prod-body em { display: block; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g); }
.pop-prod-body b { display: block; margin: 6px 0 6px; font-size: 20px; font-weight: 600; }
.pop-prod-body span { font-size: 13px; color: var(--ink-3); }
.pop-prod > i { position: absolute; right: 20px; bottom: 22px; color: var(--g); }

/* 지도 */
.pop-map { position: relative; height: 430px; background: var(--paper-2); }
.pop-map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.pop-map-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px; }
.pop-addr { display: flex; align-items: center; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.pop-addr-main { flex: 1; display: flex; gap: 16px; align-items: flex-start; }
.pop-addr-main > i { font-size: 22px; color: var(--g); margin-top: 3px; }
.pop-addr-main h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pop-addr-main p { font-size: 14px; color: var(--ink-2); }
.pop-addr-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.pop-addr-meta b { display: inline-block; width: 60px; font-weight: 500; color: var(--ink-3); }
.pop-addr-meta a { color: var(--ink); text-decoration: none; }
.pop-btn {
    flex: 0 0 auto; padding: 13px 24px; background: var(--g); color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600; transition: background .25s;
}
.pop-btn:hover { background: var(--g-deep); }

/* About 사진 패널 팝업 : 이미지 3 : 내용 7 */
.pop-panel { display: grid; grid-template-columns: 3fr 7fr; gap: 56px; align-items: start; min-height: 100%; }
.pop-panel-img { position: sticky; top: 0; margin: 0; cursor: zoom-in; overflow: hidden; background: var(--paper-3); }
.pop-panel-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.pop-panel-img:hover img { transform: scale(1.04); }
.pop-panel-no { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.pop-panel-body > p { margin: 0 0 16px; font-size: 15.2px; line-height: 1.75; color: var(--ink-2); }
.pop-panel-body .pop-head { margin-bottom: 26px; }
.pop-panel-body .pop-figs { margin-top: 28px; }
.pop-figs--3 { grid-template-columns: repeat(3, 1fr); }
.pop-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.pop-steps li { padding: 22px 20px 24px; background: var(--paper-2); }
.pop-steps .no { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--g); }
.pop-steps h4 { margin: 10px 0 6px; font-size: 17px; font-weight: 600; }
.pop-steps p { font-size: 13.4px; line-height: 1.55; color: var(--ink-2); }
.panel { cursor: pointer; }
.panel::before {
    content: "\f061"; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 22px; top: 22px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18); color: #fff; font-size: 14px; backdrop-filter: blur(6px);
    opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.panel:hover::before, .panel:focus-visible::before { opacity: 1; transform: none; }

/* 메일 문의 팝업 */
.mail-wrap { display: grid; grid-template-columns: 3fr 7fr; gap: 56px; align-items: start; }
.mail-side { padding: 38px 34px 40px; background: linear-gradient(160deg, var(--g-deep), var(--g)); color: #fff; }
.mail-side .pop-eyebrow { color: var(--g-lite); }
.mail-side h3 { margin: 12px 0 14px; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.mail-side > p { font-size: 14.4px; line-height: 1.7; opacity: .85; }
.mail-info { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.mail-info li { display: flex; gap: 14px; align-items: flex-start; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.mail-info i { width: 18px; margin-top: 3px; color: var(--g-lite); }
.mail-info b { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.mail-info a, .mail-info span { font-size: 14.6px; color: #fff; text-decoration: none; }
.mail-form { display: grid; gap: 16px; padding-top: 6px; }
.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mf { display: grid; gap: 7px; }
.mf > span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mf em { font-style: normal; color: #e53935; }
.mf input, .mf select, .mf textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--rule); background: #fff; border-radius: 0;
    font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--ink); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.mf textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.mf input:focus, .mf select:focus, .mf textarea:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.mf input::placeholder, .mf textarea::placeholder { color: #b3b9b3; }
.mf .is-bad, .mf-check.is-bad span { border-color: #e53935; color: inherit; }
.mf-check.is-bad span { color: #e53935; }
.mf-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 4px; }
.mf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.8px; line-height: 1.5; color: var(--ink-2); cursor: pointer; max-width: 460px; }
.mf-check input { margin-top: 3px; accent-color: var(--g); width: 16px; height: 16px; flex: 0 0 auto; }
.mf-submit {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border: 0; cursor: pointer;
    background: var(--g); color: #fff; font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 600; transition: background .25s, transform .25s;
}
.mf-submit:hover { background: var(--g-deep); transform: translateY(-2px); }
.mf-msg { min-height: 20px; font-size: 13px; }
.mf-msg.is-err { color: #e53935; }
.mf-msg.is-ok { color: var(--g); }

/* 인증 · 특허 · 상표 문서 (4 x 2) */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 22px; }
.pop-head--doc { margin-bottom: 20px !important; }
.pop-head--doc h3 { font-size: 31px; }
.pop-head--doc .pop-lead { margin-top: 8px; }
.doc { margin: 0; cursor: zoom-in; display: flex; flex-direction: column; }
.doc-img {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 158px; padding: 10px; background: var(--paper-2); overflow: hidden;
}
.doc-img img {
    height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block;
    box-shadow: 0 6px 18px rgba(0,0,0,.14); transition: transform .5s var(--ease);
}
.doc-img i {
    position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--g); color: #fff; font-size: 13px;
    opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.doc:hover .doc-img img { transform: scale(1.04); }
.doc:hover .doc-img i, .doc:focus-visible .doc-img i { opacity: 1; transform: none; }
.doc figcaption { padding-top: 11px; }
.doc-cat {
    display: inline-block; padding: 3px 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: #fff; background: var(--g);
}
.doc-cat--certification { background: #E65100; }
.doc-cat--trademark { background: #1565C0; }
.doc-cat--service-mark { background: #6A1B9A; }
.doc b { display: block; margin: 7px 0 4px; font-size: 14.2px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.doc p { font-size: 12.4px; line-height: 1.5; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc small { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.is-tall .doc-grid + * { margin-top: 0; }

/* R&D 연구과제 표 */
.proj-tbl td { padding: 8px 16px 8px 0; vertical-align: middle; }
.proj-tbl th { padding-top: 6px; padding-bottom: 8px; }
.proj-tbl .proj-no { width: 44px; font-size: 12px; font-weight: 600; color: var(--g); }
.proj-tbl td:nth-child(2) { width: 170px; }
.proj-field {
    display: inline-block; padding: 3px 9px; background: var(--paper-2); color: var(--g-deep);
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.proj-tbl .proj-title { color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.45; }
.proj-tbl .proj-by { width: 250px; font-size: 13px; color: var(--ink-2); }

/* 제품 팝업 이미지 확대 */
.pop-shot.is-zoom img { cursor: zoom-in; }

/* 제품 성분표 · 주석 */
.pop-split .pop-tbl td:first-child, .pop-split .pop-tbl td:last-child { white-space: nowrap; }
.pop-split .pop-tbl td:nth-child(2):not(:last-child) { white-space: normal; }
.pop-note { margin: 10px 0 0 !important; font-size: 12.4px !important; line-height: 1.6 !important; color: var(--ink-3) !important; }
.comp { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.comp li { display: grid; grid-template-columns: 180px 1fr 56px; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.comp span { font-size: 14.6px; font-weight: 500; color: var(--ink); }
.comp i { display: block; height: 8px; background: var(--paper-2); }
.comp i b { display: block; height: 100%; background: linear-gradient(90deg, var(--g-deep), var(--g-lite)); }
.comp em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--g-deep); text-align: right; }
.pop-shot.is-contain[style*="#000"] img { padding: 22px; }
.pop-shot.is-contain[style*="#000"] figcaption { background: #fff; }

/* 페이지 네비 */
.pop-nav {
    position: absolute; right: 30px; bottom: 26px; z-index: 4;
    display: flex; align-items: center; gap: 14px; background: #fff; padding: 6px 8px;
}
.pop-arrow {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer;
    transition: background .25s, border-color .25s, color .25s;
}
.pop-arrow:hover { background: var(--g); border-color: var(--g); color: #fff; }
.pop-page { font-size: 13px; letter-spacing: .06em; color: var(--ink-3); min-width: 34px; text-align: center; }
.pop-page b { color: var(--ink); font-weight: 600; }
.pop-page i { font-style: normal; margin: 0 3px; }

/* 라이트박스 */
.lightbox { position: fixed; inset: 0; z-index: 10001; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox-scrim { position: absolute; inset: 0; background: rgba(8, 12, 9, .92); animation: fade .25s var(--ease); cursor: zoom-out; }
.lightbox-panel { position: relative; margin: 0; max-width: min(1300px, 100%); display: flex; flex-direction: column; align-items: center; animation: rise .3s var(--ease); }
.lightbox-panel img { display: block; max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; }
.lightbox-panel figcaption { margin-top: 16px; max-width: 760px; font-size: 14px; line-height: 1.6; color: #fff; text-align: center; white-space: pre-line; }
.lightbox-close {
    position: absolute; right: -14px; top: -14px; z-index: 3; width: 44px; height: 44px; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 16px;
}
.lightbox-close:hover { background: var(--g); }

/* ===== SCROLL ANIMATIONS ===== */
.anim-up, .anim-down, .anim-left, .anim-right {
    opacity: 0;
    transition: all 1.2s ease;
}

.anim-up { transform: translateY(80px); }
.anim-down { transform: translateY(-80px); }
.anim-left { transform: translateX(-80px); }
.anim-right { transform: translateX(80px); }

.anim-up.visible, .anim-down.visible, .anim-left.visible, .anim-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #2E7D32;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(46,125,50,0.4);
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
}

.scroll-top-btn.visible { opacity: 1; }
