/* 목포폐차장 - 전남 바다 스타일 통합 CSS */

/* ===== 색상 변수 ===== */
:root {
    --primary-color: #1565C0;      /* 깊은 바다 파랑 */
    --secondary-color: #42A5F5;    /* 밝은 하늘색 */
    --accent-color: #FF6F00;       /* 해넘이 주황 */
    --success-color: #00BCD4;      /* 청록색 */
    --warning-color: #FFA000;      /* 진한 금색 */
    --danger-color: #E91E63;       /* 일출 빨강 */
    --ocean-dark: #0D47A1;         /* 깊은 바다 */
    --ocean-light: #81D4FA;        /* 잔잔한 바다 */
    --sand-beige: #FFF3E0;         /* 모래 베이지 */
    --text-dark: #1A237E;          /* 짙은 파랑 계열 텍스트 */
    --text-light: #546E7A;         /* 연한 파랑 계열 텍스트 */
    --bg-light: #E3F2FD;           /* 연한 파랑 배경 */
    --bg-white: #ffffff;
    --border-color: #90CAF9;       /* 은은한 파랑 보더 */
    --shadow-sm: 0 2px 4px 0 rgba(21, 101, 192, 0.08);
    --shadow: 0 4px 8px -1px rgba(21, 101, 192, 0.12), 0 2px 6px -1px rgba(21, 101, 192, 0.08);
    --shadow-lg: 0 10px 20px -3px rgba(21, 101, 192, 0.15), 0 4px 8px -2px rgba(21, 101, 192, 0.08);
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 기본 스타일 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== 헤더 ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-bottom: 3px solid var(--ocean-dark);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    transition: var(--transition);
    position: relative;
    display: block;
}

.nav-link:hover {
    color: var(--warning-color);
}

.nav-link.active {
    color: var(--warning-color) !important;
    font-weight: 700;
    background: rgba(150, 150, 150, 0.3);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
}

/* ===== 햄버거 메뉴 ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    justify-content: center;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff !important;
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-list {
    list-style: none;
    padding: 2rem 1rem;
}

.mobile-menu-list li {
    margin-bottom: 0.5rem;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: rgba(255, 160, 0, 0.2);
    color: var(--warning-color);
}

/* ===== 메인 콘텐츠 ===== */
.main {
    padding: 2rem 0;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    text-align: center;
    color: white;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.hero-banner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ===== 카드 ===== */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-content {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    color: white;
}

/* ===== 제목 스타일 ===== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 700;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

/* 흰색 배경 섹션의 제목은 파랑 */
.card .section-title,
.contact-info .section-title,
h2.section-title {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

/* 파랑 배경 섹션의 제목은 흰색 */
.card-content .section-title,
.contact-form-section .section-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ===== 그리드 레이아웃 ===== */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== 서비스 카드 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 3rem;
    color: var(--warning-color) !important;
    filter: drop-shadow(0 2px 8px rgba(255, 160, 0, 0.3));
}

.service-card h3,
.service-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 1rem;
}

.service-card p,
.service-description {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
}

/* ===== Feature 카드 ===== */
.feature-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--warning-color) !important;
}

.feature-card h3 {
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== 타임라인 (회사 연혁) ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--warning-color) 0%, var(--secondary-color) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 160, 0, 0.4);
    z-index: 2;
}

.timeline-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 0 2rem;
    flex: 1;
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== 경영진 소개 ===== */
.executive-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: transparent;
}

.executive-image {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--success-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.4);
}

.executive-image i {
    font-size: 3rem;
    color: #ffffff !important;
}

.executive-info h3 {
    font-size: 1.8rem;
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.executive-info h4 {
    font-size: 1.2rem;
    color: var(--warning-color) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.executive-info p {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.certifications {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-badge {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--success-color) 100%);
    color: #ffffff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(66, 165, 245, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== FAQ ===== */
.faq-item {
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-question {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item.active .faq-question {
    background: transparent !important;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color) !important;
    font-weight: 600;
    margin: 0;
}

.faq-item.active .faq-question h3 {
    color: #ffffff !important;
}

.faq-question i {
    color: var(--warning-color) !important;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    color: #ffffff !important;
    line-height: 1.6;
    margin: 0;
}

.faq-answer strong {
    color: var(--warning-color) !important;
}

/* ===== 폼 스타일 ===== */
.form-label {
    color: #ffffff !important;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ===== 연락처 정보 카드 ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
}

.info-card i {
    color: var(--warning-color) !important;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== 버튼 ===== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--warning-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== 푸터 ===== */
.footer {
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.footer p,
.footer li {
    color: rgba(255, 255, 255, 0.9);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .grid-2,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card,
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3,
    .feature-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p,
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .service-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i,
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .executive-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 1rem;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* ===== 게시판 스타일 ===== */
.board-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.board-item h3 {
    color: #ffffff !important;
}

.board-item p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== 유틸리티 ===== */
.text-white {
    color: #ffffff !important;
}

.text-gold {
    color: var(--warning-color) !important;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* 연락처 정보 제목 강제 파란색 적용 */
.contact-info h2.section-title {
    color: #1565C0 !important;
    text-shadow: none !important;
}

/* 무료 견적 신청 제목 강제 흰색 적용 */
.contact-form-section h2.section-title,
.card h2.section-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

