/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; color: #333; line-height: 1.8; font-size: 16px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar ===== */
.top-bar { background: #f5f5f5; border-bottom: 1px solid #ddd; padding: 8px 0; font-size: 14px; color: #555; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #333; font-weight: 500; }
.top-bar a:hover { color: #c8a951; }
.top-bar-divider { margin: 0 12px; color: #ccc; }

/* ===== Header ===== */
.main-header { background: #1a2332; padding: 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 75px; }
.logo img { height: 50px; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }

/* ===== Navigation ===== */
.nav-list { display: flex; list-style: none; gap: 0; }
.nav-item > a { display: block; padding: 25px 28px; color: #fff; font-size: 16px; font-weight: 400; transition: background 0.2s, color 0.2s; letter-spacing: -0.3px; }
.nav-item > a:hover, .nav-item.open > a { background: rgba(255,255,255,0.1); color: #c8a951; }
.sub-menu { display: none; position: absolute; background: #1a2332; min-width: 200px; list-style: none; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100; }
.nav-item.open .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 14px 28px; color: #ccc; font-size: 15px; transition: all 0.2s; }
.sub-menu li a:hover { color: #c8a951; background: rgba(255,255,255,0.05); }
.nav-item { position: relative; }

/* ===== Hero Slider ===== */
.hero { position: relative; height: 620px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; }
.hero-text { text-align: center; color: #fff; }
.hero-text .eng-title { font-size: 18px; letter-spacing: 4px; margin-bottom: 20px; font-weight: 300; text-transform: uppercase; }
.hero-text h1 { font-size: 44px; font-weight: 700; line-height: 1.4; margin-bottom: 28px; }
.hero-text .btn { display: inline-block; padding: 14px 40px; border: 2px solid #fff; color: #fff; font-size: 16px; transition: all 0.3s; letter-spacing: 1px; }
.hero-text .btn:hover { background: #c8a951; border-color: #c8a951; }

/* ===== Contact Bar (under hero) ===== */
.contact-bar { background: #c8a951; padding: 16px 0; }
.contact-bar .container { display: flex; align-items: center; justify-content: center; gap: 30px; color: #fff; font-size: 16px; }
.contact-bar a { color: #fff; }

/* ===== Section Styles ===== */
.section { padding: 80px 0; }
.section-dark { background: #1a2332; color: #fff; }
.section-gray { background: #f7f7f7; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .eng { font-size: 15px; letter-spacing: 4px; color: #999; margin-bottom: 10px; text-transform: uppercase; }
.section-title h2 { font-size: 34px; font-weight: 700; }
.section-title p { color: #666; margin-top: 12px; font-size: 17px; }

/* ===== Service Grid ===== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.service-card { position: relative; height: 400px; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover img { transform: scale(1.05); }
.service-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; transition: background 0.3s; }
.service-card:hover .service-card-overlay { background: rgba(0,0,0,0.55); }
.service-card-overlay h3 { font-size: 26px; margin-bottom: 12px; font-weight: 700; }
.service-card-overlay p { font-size: 16px; opacity: 0.9; text-align: center; padding: 0 30px; line-height: 1.7; }

/* ===== Performance Section ===== */
.performance { display: flex; gap: 50px; align-items: center; }
.performance-img { flex: 1; }
.performance-img img { width: 100%; }
.performance-text { flex: 1; }
.performance-text .eng { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 24px; }
.performance-text h3 { font-size: 22px; margin-bottom: 18px; color: #c8a951; }
.performance-text p { font-size: 17px; color: #ccc; margin-bottom: 14px; line-height: 1.8; }
.performance-text .btn-more { display: inline-block; padding: 12px 28px; border: 1px solid #c8a951; color: #c8a951; font-size: 15px; margin-top: 14px; transition: all 0.3s; }
.performance-text .btn-more:hover { background: #c8a951; color: #fff; }

/* ===== GM News ===== */
.news-section { text-align: center; }
.news-section h2 { font-size: 24px; letter-spacing: 4px; margin-bottom: 24px; }
.news-desc { color: #666; font-size: 17px; margin-bottom: 30px; }
.news-links { display: flex; justify-content: center; gap: 20px; }
.news-links a { padding: 14px 32px; border: 2px solid #333; font-size: 15px; font-weight: 500; transition: all 0.3s; }
.news-links a:hover { background: #333; color: #fff; }

/* ===== Consult Banner ===== */
.consult-banner { background: #2b4c7e; color: #fff; text-align: center; padding: 50px 0; }
.consult-banner p { font-size: 22px; font-weight: 500; }
.consult-sub { font-size: 16px; opacity: 0.8; margin-top: 8px; }

/* ===== Footer ===== */
.main-footer { background: #111; color: #999; padding: 35px 0 0; font-size: 14px; }
.footer-top { display: flex; align-items: flex-start; gap: 30px; padding-bottom: 25px; border-bottom: 1px solid #333; }
.footer-logo img { height: 40px; }
.footer-company { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.footer-info p { margin-bottom: 4px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: flex-end; align-items: center; padding: 25px 0; }
.footer-contact span { font-size: 15px; }
.footer-phone { font-size: 38px; font-weight: 900; color: #fff; margin-left: 18px; }

/* ===== Sub Page Banner ===== */
.page-banner { height: 350px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: rgba(26,35,50,0.65); }
.page-banner-text { position: relative; z-index: 1; text-align: center; color: #fff; }
.page-banner-text h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.page-banner-text p { font-size: 17px; opacity: 0.85; line-height: 1.8; }

/* ===== Sub Navigation (Icon Tabs) ===== */
.sub-nav { display: flex; justify-content: center; gap: 14px; padding: 40px 0; flex-wrap: wrap; }
.sub-nav-item { display: flex; flex-direction: column; align-items: center; padding: 28px 35px; border: 2px solid #ddd; border-radius: 12px; min-width: 150px; text-decoration: none; color: #555; font-size: 17px; font-weight: 600; transition: all 0.3s; }
.sub-nav-item:hover, .sub-nav-item.active { border-color: #2b4c7e; color: #2b4c7e; background: #f0f4fa; }
.sub-nav-item .icon { font-size: 36px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; }
.sub-nav-item .icon svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ===== Sub Nav Dark Variant (회사실적, 해충정보) ===== */
.sub-nav-dark .sub-nav-item { background: #2b4c7e; border-color: #2b4c7e; color: #fff; border-radius: 8px; }
.sub-nav-dark .sub-nav-item .icon svg { stroke: #fff; }
.sub-nav-dark .sub-nav-item:hover, .sub-nav-dark .sub-nav-item.active { background: #1a2332; border-color: #c8a951; color: #c8a951; }
.sub-nav-dark .sub-nav-item:hover .icon svg, .sub-nav-dark .sub-nav-item.active .icon svg { stroke: #c8a951; }

/* ===== 회사실적 탭 동일 크기 ===== */
.achieve-nav { gap: 20px; }
.achieve-nav .sub-nav-item { width: 220px; min-width: 220px; padding: 24px 20px; text-align: center; font-size: 15px; }
.achieve-nav .sub-nav-item .icon { width: 64px; height: 64px; margin-bottom: 14px; }
.achieve-nav .sub-nav-item .icon svg { width: 56px; height: 56px; stroke-width: 1.2; }

/* ===== Page Content ===== */
.page-content { padding: 70px 0; }
.page-content h2 { font-size: 32px; font-weight: 700; margin-bottom: 35px; padding-left: 20px; border-left: 5px solid #2b4c7e; }
.page-content h3 { font-size: 28px; font-weight: 700; margin: 40px 0 20px; line-height: 1.5; }
.page-content p { font-size: 18px; line-height: 1.9; color: #555; margin-bottom: 20px; }
.content-box { background: #fff; padding: 50px; margin-bottom: 40px; }
.content-with-image { display: flex; gap: 50px; align-items: flex-start; margin-bottom: 50px; }
.content-with-image img { width: 40%; border-radius: 4px; object-fit: contain; align-self: flex-start; }
.content-with-image .text { flex: 1; }

/* ===== Timeline (History) ===== */
.timeline { position: relative; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; width: 2px; background: #ddd; top: 0; bottom: 0; transform: translateX(-50%); }
.timeline-item { display: flex; align-items: flex-start; margin-bottom: 70px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-year { flex: 1; text-align: right; padding-right: 55px; }
.timeline-item:nth-child(even) .timeline-year { text-align: left; padding-left: 55px; padding-right: 0; }
.timeline-year h3 { font-size: 56px; font-weight: 900; color: #1a2332; }
.timeline-year h4 { font-size: 18px; color: #2b4c7e; margin-bottom: 12px; font-weight: 600; }
.timeline-year p { font-size: 16px; color: #666; line-height: 1.8; }
.timeline-content { flex: 1; padding-left: 55px; }
.timeline-item:nth-child(even) .timeline-content { padding-right: 55px; padding-left: 0; }
.timeline-content img { width: 100%; border-radius: 4px; }

/* ===== Data Table ===== */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.data-table th { background: #2b4c7e; color: #fff; padding: 14px 18px; font-size: 15px; font-weight: 500; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid #eee; font-size: 15px; line-height: 1.7; }
.data-table tr:hover td { background: #f9f9f9; }

/* ===== Achievement Cards ===== */
.tab-content { display: none; }
.tab-content.active { display: block; }
.achieve-sub-title { font-size: 22px; font-weight: 700; color: #2b4c7e; margin: 40px 0 20px; padding-bottom: 10px; border-bottom: 2px solid #2b4c7e; }
.achieve-sub-title:first-of-type { margin-top: 0; }
.achieve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.achieve-card { border: 1px solid #eee; padding: 0; overflow: hidden; background: #fff; }
.achieve-card img { width: 100%; height: 220px; object-fit: cover; }
.achieve-card-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, #1a2332 0%, #2b4c7e 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.achieve-card-placeholder::after { content: ''; display: block; width: 60px; height: 80px; border: 3px solid rgba(255,255,255,0.3); border-radius: 4px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.achieve-card-placeholder::before { content: ''; display: block; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.2); border-radius: 2px; position: absolute; top: 35%; left: 42%; transform: translate(-50%, -50%); }
.achieve-card-info { padding: 20px; }
.achieve-card-info h4 { font-size: 19px; font-weight: 700; color: #1a2332; margin-bottom: 10px; }
.achieve-card-info p { font-size: 15px; color: #666; margin-bottom: 4px; }

/* ===== 건물종합관리 페이지 ===== */
.bld-intro { padding: 0; }
.bld-intro-img { margin: 0 auto; }
.bld-intro-img img { width: 100%; display: block; }
.bld-system { padding: 0; background: #f0f0f0; }
.bld-system-img { width: 100%; display: block; margin: 0 auto; }
.bld-sections { padding: 0; }
.bld-section-item { margin: 0; }
.bld-section-item img { width: 100%; display: block; }

/* ===== 친환경 위생관리 페이지 ===== */
.eco-main { padding: 0; }
.eco-main .container { padding: 0 20px; }
.eco-full-img { width: 100%; display: block; margin: 0 auto; }
.eco-section-title { font-size: 24px; font-weight: 700; margin: 40px 0 20px; padding-left: 0; border-left: none; }
.eco-sections { padding: 0; }
.eco-sections .container { padding: 0; }
.eco-sections img { margin: 0; }
/* ===== 친환경 위생관리 서브탭 (초록 테마) ===== */
.eco-nav { gap: 16px; }
.eco-nav .sub-nav-item { background: #4a7c2e; border-color: #4a7c2e; color: #fff; border-radius: 8px; width: 200px; min-width: 200px; padding: 22px 18px; font-size: 15px; }
.eco-nav .sub-nav-item .icon { background: rgba(255,255,255,0.15); border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.eco-nav .sub-nav-item .icon img { width: 36px; height: 36px; object-fit: contain; filter: brightness(10); }

/* ===== Business Icons ===== */
.biz-icons { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin: 60px 0; }
.biz-icon-item { text-align: center; width: 180px; }
.biz-icon-item .icon-circle { width: 120px; height: 120px; border: 2px solid #777; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.biz-icon-item .icon-circle svg { width: 55px; height: 55px; stroke: #444; fill: none; stroke-width: 1.5; }
.biz-icon-item h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.biz-icon-item p { font-size: 15px; color: #777; line-height: 1.7; }

/* ===== Building Management Grid ===== */
.mgmt-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.mgmt-item { display: flex; min-height: 320px; }
.mgmt-item.reverse { flex-direction: row-reverse; }
.mgmt-item-img { width: 50%; }
.mgmt-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mgmt-item-text { width: 50%; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.mgmt-item-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.mgmt-item-text p { font-size: 16px; color: #666; line-height: 1.8; }

/* ===== Pest Cards ===== */
.pest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pest-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s; }
.pest-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.pest-card img { width: 100%; height: 220px; object-fit: cover; }
.pest-card-body { padding: 24px; }
.pest-card-body h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.pest-card-body p { font-size: 15px; color: #666; }

/* ===== Top Scroll Button ===== */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; background: #333; color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 20px; z-index: 999; display: flex; align-items: center; justify-content: center; }
.scroll-top:hover { background: #c8a951; }

/* ===== Eco Section (green theme) ===== */
.eco-banner { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/images/img_048.png') center/cover; }
.eco-nav .sub-nav-item:hover, .eco-nav .sub-nav-item.active { background: #2d5016; border-color: #c8a951; color: #c8a951; }

/* ===== Organization Chart ===== */
.org-chart { text-align: center; padding: 40px 0 60px; }
.org-headline { font-size: 26px; font-weight: 700; margin-bottom: 40px; color: #1a2332; }
.org-row { display: flex; justify-content: center; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.org-row-wide { gap: 40px; align-items: center; }
.org-line-v { width: 2px; height: 40px; background: #bbb; margin: 0 auto; }
.org-node { display: flex; flex-direction: column; align-items: center; }
.org-ceo { margin-bottom: 0; }
.org-ceo .org-icon { width: 90px; height: 90px; background: #2b4c7e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.org-ceo .org-icon svg { width: 44px; height: 44px; fill: #fff; stroke: #fff; }
.org-ceo span { font-size: 20px; font-weight: 700; color: #1a2332; letter-spacing: 2px; }
.org-main { margin: 0 40px; }
.org-main .org-icon { width: 100px; height: 100px; background: #2b4c7e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.org-main .org-icon svg { width: 48px; height: 48px; fill: #fff; stroke: #fff; }
.org-main span { font-size: 20px; font-weight: 700; color: #1a2332; }
.org-side-group { display: flex; gap: 20px; }
.org-sm { width: 150px; padding: 18px; border: 2px solid #ccc; border-radius: 50%; width: 140px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.org-sm strong { font-size: 15px; margin: 6px 0 4px; }
.org-sm p { font-size: 11px; color: #777; line-height: 1.4; margin: 0; }
.org-icon-sm { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.org-icon-sm svg { width: 32px; height: 32px; stroke: #2b4c7e; fill: none; stroke-width: 1.5; }
.org-bottom { margin-top: 0; gap: 40px; }
.org-dept { width: 130px; }
.org-dept .org-icon-sm { width: 80px; height: 80px; border: 2px solid #aaa; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.org-dept .org-icon-sm svg { width: 36px; height: 36px; }
.org-dept span { font-size: 16px; font-weight: 600; color: #1a2332; }

/* ===== Map ===== */
.map-container { width: 100%; height: 400px; border: 1px solid #ddd; margin: 24px 0; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; position: absolute; top: 75px; left: 0; right: 0; background: #1a2332; }
    .main-nav.active { display: block; }
    .nav-list { flex-direction: column; }
    .nav-item > a { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .sub-menu { position: static; box-shadow: none; background: #141c28; }
    .nav-item.has-sub:hover .sub-menu, .nav-item.open .sub-menu { display: block; }
    .hero { height: 400px; }
    .hero-text h1 { font-size: 28px; }
    .hero-text .eng-title { font-size: 14px; }
    .service-grid { grid-template-columns: 1fr; }
    .performance { flex-direction: column; }
    .content-with-image { flex-direction: column; }
    .content-with-image img { width: 100%; }
    .achieve-grid { grid-template-columns: 1fr; }
    .mgmt-item { flex-direction: column !important; }
    .mgmt-item-img, .mgmt-item-text { width: 100%; }
    .pest-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; }
    .timeline-year, .timeline-item:nth-child(even) .timeline-year { text-align: left; padding: 0 0 10px 50px; }
    .timeline-content, .timeline-item:nth-child(even) .timeline-content { padding: 0 0 0 50px; }
    .timeline-year h3 { font-size: 36px; }
    .sub-nav { gap: 6px; }
    .sub-nav-item { min-width: 90px; padding: 14px 12px; font-size: 13px; }
    .achieve-nav { gap: 8px; }
    .achieve-nav .sub-nav-item { flex: 1 1 0; width: 0; min-width: 0; padding: 14px 8px; font-size: 11px; }
    .achieve-nav .sub-nav-item .icon { width: 40px; height: 40px; margin-bottom: 8px; }
    .achieve-nav .sub-nav-item .icon svg { width: 34px; height: 34px; }
    .eco-nav { gap: 8px; }
    .eco-nav .sub-nav-item { flex: 1 1 0; width: 0; min-width: 0; padding: 14px 8px; font-size: 11px; }
    .eco-nav .sub-nav-item .icon { width: 40px; height: 40px; }
    .eco-nav .sub-nav-item .icon img { width: 28px; height: 28px; }
    .footer-top { flex-direction: column; }
    .footer-bottom { justify-content: center; }
    .biz-icons { gap: 20px; }
    .contact-bar .container { flex-direction: column; gap: 5px; font-size: 14px; }
    .page-banner { height: 250px; }
    .page-banner-text h1 { font-size: 28px; }
    .section-title h2 { font-size: 26px; }
    .page-content h2 { font-size: 22px; }
}
