/* /var/www/kas/assets/css/home.css */
/* (주)케이아그로솔루션즈 공식 홈페이지 스타일시트 */

:root {
    --bg-dark: #07110e;
    --bg-section: #0b1915;
    --bg-card: rgba(16, 35, 29, 0.78);
    --bg-card-hover: rgba(22, 48, 40, 0.92);
    --border-subtle: rgba(16, 185, 129, 0.18);
    --border-strong: rgba(16, 185, 129, 0.42);
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --accent-gold: #f59e0b;
    --accent-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 상단 고정 내비게이션 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 17, 14, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
}

.nav-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    letter-spacing: -0.5px;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-corp-type {
    font-size: 0.72rem;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-corp-name {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* 공통 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.45);
}

.btn-erp-glow {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-erp-glow:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.14);
    border-color: var(--primary-light);
}

.btn-lg {
    padding: 0.95rem 1.75rem;
    font-size: 1.02rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.84rem;
    border-radius: 10px;
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    padding: 150px 0 100px;
    background:
        radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 82% 30%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
        linear-gradient(180deg, #07110e 0%, #0b1915 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--primary-light);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-title .accent {
    background: linear-gradient(90deg, #34d399 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.08rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
    max-width: 640px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-light);
}

.metric-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 우측 히어로 쇼케이스 카드 */
.hero-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 1.85rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pill-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.division-mini-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: all 0.2s;
}

.division-mini-item:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
}

.division-mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 공통 섹션 레이아웃 */
.section {
    padding: 96px 0;
}

.section-alt {
    background-color: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 기업소개 및 사업자등록증 섹션 */
.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: stretch;
}

.corp-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
}

.corp-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
}

.corp-spec-table th,
.corp-spec-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    font-size: 0.94rem;
}

.corp-spec-table th {
    width: 140px;
    color: var(--primary-light);
    font-weight: 700;
}

.corp-spec-table td {
    color: var(--text-main);
}

.license-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.license-thumb-wrap {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    margin: 1rem 0;
    cursor: pointer;
    position: relative;
}

.license-thumb-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.license-thumb-wrap:hover img {
    transform: scale(1.04);
}

/* 7대 사업 그리드 */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.division-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.division-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

.div-sector-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.14);
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.div-card-title {
    font-size: 1.28rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.div-card-official {
    font-size: 0.84rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.div-card-desc {
    color: var(--text-soft);
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
}

/* 포트폴리오 & 실적 카드 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 2.5rem;
}

.filter-tab {
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 0.45rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #38bdf8);
    border-radius: 99px;
}

/* 공지 및 문의 그리드 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.25rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.78rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 17, 14, 0.75);
    color: #fff;
    font-size: 0.94rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* 모달 공통 */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 6, 0.82);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 480px;
    background: #0f221c;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-soft);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SNS 버튼 스타일 */
.sns-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.4rem 0;
}

.sns-btn {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.sns-kakao {
    background: #FEE500;
    color: #191919;
}

.sns-naver {
    background: #03C75A;
    color: #ffffff;
}

.sns-google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

/* 푸터 */
.site-footer {
    background: #040a08;
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 2.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

