/* ================================================================
   KEEG 페이지별 스타일 (about, services, contact, board 공통)
   ================================================================ */

/* ── 공통 페이지 헤더 ── */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    text-align: center;
    color: var(--white);
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
}
.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* ================================================================
   회사소개 (about.html)
   ================================================================ */
.about-section { padding: 100px 0; }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
}
.about-text p {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-image {
    position: relative;
    height: 500px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vision-section {
    padding: 100px 0;
    background: var(--light-gray);
}
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.vision-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}
.vision-icon { font-size: 48px; margin-bottom: 24px; }
.vision-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
}
.vision-card p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

.strengths-section { padding: 100px 0; }
.strengths-list {
    display: grid;
    gap: 30px;
    margin-top: 60px;
}
.strength-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    padding: 40px;
    background: var(--white);
    border-left: 4px solid var(--primary-orange);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}
.strength-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 30px rgba(0, 31, 63, 0.1);
}
.strength-number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    color: var(--primary-orange);
    opacity: 0.3;
    line-height: 1;
}
.strength-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}
.strength-content p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ================================================================
   사업분야 (services.html)
   ================================================================ */
.services-detail-section { padding: 100px 0; }

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-content h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
}
.service-detail-content .service-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.service-detail-content p {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}
.service-features { list-style: none; margin-top: 30px; }
.service-features li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 16px;
    color: var(--text-dark);
}
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 18px;
}
.service-detail-visual {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.service-detail-visual svg { width: 60%; height: 60%; opacity: 0.3; }
.service-number-large {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 180px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.process-section {
    padding: 100px 0;
    background: var(--light-gray);
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.process-step { text-align: center; position: relative; }
.process-step::after {
    content: '→';
    position: absolute;
    right: -40px;
    top: 40px;
    font-size: 32px;
    color: var(--primary-orange);
    font-weight: 700;
}
.process-step:last-child::after { display: none; }
.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 24px;
}
.process-step h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}
.process-step p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ================================================================
   견적문의 (contact.html)
   ================================================================ */
.contact-section { padding: 100px 0; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info-box {
    background: var(--light-gray);
    padding: 50px;
    border-radius: 16px;
}
.contact-info-box h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
}
.contact-info-box p {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 24px; height: 24px; stroke: var(--white); }
.contact-item-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}
.contact-item-content p { font-size: 16px; color: var(--text-dark); margin: 0; }
.contact-form-box {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.contact-form-box h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 32px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-group label .required { color: var(--primary-orange); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-smooth);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.form-submit:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}
.response-time-notice {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.05), rgba(255, 107, 53, 0.05));
    padding: 24px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}
.response-time-notice p { font-size: 16px; color: var(--text-dark); margin: 0; }
.response-time-notice strong { color: var(--primary-orange); font-weight: 700; }

/* ================================================================
   게시판 (board.html)
   ================================================================ */
.board-section { padding: 80px 0 120px; }
.board-wrap { max-width: 860px; margin: 0 auto; }

.cat-tabs { display: flex; gap: 12px; margin-bottom: 36px; }
.cat-tab {
    padding: 10px 24px;
    border-radius: 24px;
    border: 2px solid var(--medium-gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    color: var(--text-medium);
    transition: var(--transition-smooth);
}
.cat-tab.active, .cat-tab:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-orange);
    transition: var(--transition-smooth);
}
.post-card:hover { transform: translateX(4px); box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-cat {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--primary-orange);
    color: var(--white);
}
.post-date { font-size: 13px; color: var(--text-light); margin-left: auto; }
.post-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.post-body { font-size: 15px; color: var(--text-medium); line-height: 1.75; white-space: pre-wrap; }
.post-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.post-link:hover { text-decoration: underline; }
.post-del {
    margin-top: 14px;
    background: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--text-light);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: none;
}
.post-del:hover { background: #ff4444; color: var(--white); border-color: #ff4444; }
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
    background: var(--light-gray);
    border-radius: 12px;
}

.admin-toggle { margin-bottom: 36px; text-align: right; }
.btn-admin {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-admin:hover { background: var(--primary-blue); color: var(--white); }
.admin-panel {
    display: none;
    background: var(--white);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    margin-bottom: 48px;
}
.admin-panel h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 18px; }
.f-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.f-group input, .f-group select, .f-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-smooth);
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.f-group textarea { resize: vertical; min-height: 130px; }
.btn-post {
    width: 100%;
    padding: 14px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-post:hover { background: var(--accent-orange); transform: translateY(-2px); }

/* ================================================================
   반응형
   ================================================================ */
@media (max-width: 968px) {
    .about-content { grid-template-columns: 1fr; }
    .about-image { height: 400px; }
    .about-text h2 { font-size: 32px; }
    .service-detail { grid-template-columns: 1fr; }
    .service-detail:nth-child(even) { direction: ltr; }
    .service-detail-visual { height: 350px; }
    .service-detail-content h2 { font-size: 32px; }
    .process-step::after { display: none; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-info-box, .contact-form-box { padding: 40px 30px; }
    .page-header h1 { font-size: 40px; }
}
@media (max-width: 768px) {
    .admin-panel { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   이미지 유틸리티
   ================================================================ */
.img-cover-16 { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.img-cover-8  { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.img-contain  { width: 100%; height: 100%; object-fit: contain; }
.img-strength { max-width: 320px; width: 100%; border-radius: 12px; object-fit: cover; }
.img-doc      { max-width: 100%; border-radius: 8px; }

/* service-detail-visual 이미지 전용 오버라이드 */
.service-visual-photo { background: none; padding: 0; overflow: hidden; }

/* 허니팟 */
.honeypot { display: none; }

/* 게시판 메시지 */
.post-msg { margin-top: 12px; font-size: 14px; }

/* ================================================================
   사업자등록증 아코디언 (about.html)
   ================================================================ */
.tax-section { padding: 60px 0; background: var(--light-gray); }
.tax-accordion { cursor: pointer; max-width: 800px; margin: 0 auto; }
.tax-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.tax-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}
.tax-arrow {
    font-size: 24px;
    color: var(--primary-orange);
    transition: transform 0.3s;
    display: inline-block;
}
.tax-content {
    display: none;
    padding: 30px 40px;
    background: var(--white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-top: -8px;
}

/* ================================================================
   스크롤 애니메이션 (script.js 대체)
   ================================================================ */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.anim-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   폼 메시지 (script.js showFormMessage 대체)
   ================================================================ */
.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
}
.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.form-message.error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
